package com.qf.common.core.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("users")
@ApiModel(description = "用户实体类")
public class Users {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "userId",value = "用户id")
    private Integer userId;

    /**
     * 用户名
     */
    @ApiModelProperty(name = "username",value = "用户名")
    private String username;
    /**
     * 手机号
     */
    @ApiModelProperty(name = "phone",value = "手机号")
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty(name = "password",value = "密码")
    private String password;

    /**
     * 邮箱
     */
    @ApiModelProperty(name = "email",value = "邮箱")
    private String email;

    /**
     * 性别
     */
    @ApiModelProperty(name = "gender",value = "性别")
    private String gender;

    /**
     * 年龄
     */
    @ApiModelProperty(name = "age",value = "年龄")
    private Integer age;

    /**
     * 身高，单位：厘米
     */
    @ApiModelProperty(name = "height",value = "身高")
    private Double height;

    /**
     * 体重，单位：千克
     */
    @ApiModelProperty(name = "weight",value = "体重")
    private Double weight;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "createTime",value = "创建时间")
    private java.util.Date createTime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "updateTime",value = "修改时间")
    private java.util.Date updateTime;
    /**
     * 头像
     */
    @ApiModelProperty(name = "avatar",value = "头像")
    private String avatar;
    /**
     * 个性签名
     */
    @ApiModelProperty(name = "content",value = "个性签名")
    private String content;
    /**
     * 用户生日
     */
    @ApiModelProperty(name = "birthday",value = "生日")
    private Date birthday;

}
